import { getEnv } from "./env";

export function isString(val: any): val is string {
    return typeof val === 'string'
}

export function isBoolean(val: any): val is boolean {
    return typeof val === 'boolean'
}

export function isFunction(val: any): val is Function {
    return typeof val === 'function'
}

export function isUndefined(val: any): val is undefined {
    return typeof val === 'undefined'
}

export function isNull(val: any): val is null {
    return val === null;
}
export function isDev(): boolean { 
    return !!getEnv().dev
}